<if condition="$top_hide eq false">
    <div style="max-width: 680px;margin-bottom: 10px" data-role="id_weibo" id="weibo_{$weibo.id}" <if condition="$can_hide">class="top_can_hide"<else/>class=""</if> <if condition="$top_hide">style="display:none"</if>>
        <div class="all-wrap">
            <if condition="$weibo['is_first'] eq 1">
                <div class="new-user-first-weibo"></div>
            </if>
            <div class="weibo-content">
                <div class="content-head">
                    <div class="avat-box pull-left">
                        <a href="{$weibo.user.space_url}" ucard="{$weibo.user.uid}">
                            <img src="{$weibo.user.avatar128}" class="avatar-img"/>
                        </a>
                        <div class="show-follow pull-right">
                            <if condition="!$sign">
                                <div class="follow-btn" style="display: none;">
                                    {:W('Common/Follow/follow',array('follow_who'=>$weibo['uid']))}
                                </div>
                            </if>
                        </div>
                    </div>
                    <div class="op-box pull-right">
                        <div class="op-tb op-top">
                            <a ucard="{$weibo.user.uid}" href="{$weibo.user.space_url}" class="user_name">
                                {$weibo.user.nickname}
                            </a>
                            <if condition="modC('SHOW_TITLE',1)">
                                <small class="font_grey">{$weibo.user.title}</small>
                            </if>
                            {:W('Common/UserRank/render',array($weibo['uid']))}
                            <!--隐藏操作列表-->
                            <div class="pull-right show-operate-wrap">
                                <a href="javascript:" class="show-operate pull-right icon-angle-down"></a>
                                <div class="operate-box" >
                                    <if condition="check_auth('Weibo/Index/setTop')">
                                        <eq name="weibo.is_top" value="0">
                                            <li data-weibo-id="{$weibo.id}" title="{:L('_SET_TOP_')}" data-role="weibo_set_top">
                                                置顶
                                            </li>
                                            <else/>
                                            <li data-weibo-id="{$weibo.id}" title="{:L('_CANCEL_TOP_')}" data-role="weibo_set_top">
                                                取消置顶
                                            </li>
                                        </eq>
                                    </if>
                                    <if condition="$weibo['can_delete']">
                                        <li data-weibo-id="{$weibo.id}" title="{:L('_DELETE_')}" data-role="del_weibo">
                                            删除
                                        </li>
                                    </if>
                                    <if condition="$can_hide">
                                        <li data-weibo-id="{$weibo.id}" title="{:L('_HIDE_TOP_')}" data-role="hide_top_weibo">
                                            隐藏
                                        </li>
                                    </if>
                                    <li>{:hook('report',array('type'=>$MODULE_ALIAS.'/'.$MODULE_ALIAS,'url'=>"Weibo/Index/weiboDetail?id=$weibo[id]",'data'=>array('weibo-id'=>$weibo['id'])))}</li>
                                </div>
                            </div>
                        </div>
                        <div class="op-tb op-bottom">
                            <a data-hover="查看详情" class="wb-time" href="{:U('Weibo/Index/weiboDetail',array('id'=>$weibo['id']))}">{$weibo.create_time|friendlyDate}</a>
                        </div>
                    </div>
                    <eq name="weibo.is_top" value="1">
                        <div class="ribbion-green"></div>
                    </eq>
                </div>
                <div class="content-info row">
                    {$weibo.fetchContent}
                    <div class="form-where">
                        <div class="where w-left">
                            <span>{:L('_FROM_')} <if condition="$weibo['from'] eq ''">{:L('_PC_')} <else/><strong>{$weibo.from}</strong></if></span>
                            <span>{:hook('giveReward',array('type'=>$MODULE_ALIAS.'/'.$MODULE_ALIAS,'url'=>"Weibo/Index/weiboDetail?id=$weibo[id]",'data'=>array('user-id'=>$weibo['user']['uid'])))}</span>
                        </div>
                        <div class="where w-right  bottom-operate" data-weibo-id="{$weibo.id}">
                            <php>
                                $weiboCommentTotalCount = $weibo['comment_count'];
                            </php>
                            <include file="./Application/Weibo/View/default/Index/_operation.html"/>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    <div class="weibo-comment-list" <if condition="modC('SHOW_COMMENT',1)">style="display: block;" <else/> style="display: none;" </if> data-weibo-id="{$weibo.id}">
    <if condition="modC('SHOW_COMMENT',1)">
        <div class=" weibo-comment-block">
            <div class="weibo-comment-container">
                {:W('Weibo/Comment/someComment',array('weibo_id'=>$weibo['id']))}
            </div>
        </div>
    </if>
    </div>
    </div>
</if>
<style>
    .suofang {MARGIN: auto;WIDTH: 200px;}
    .suofang img{MAX-WIDTH: 100%!important;HEIGHT: auto!important;width:expression(this.width > 300 ? "300px" :this.width)!important;}
</style>
<script>
    $(document).ready(function()
    {
        $('.exp_img').qtip({
            content:{
                text:function (event,api) {
                    var html='<div>' +
                            '<div class="suofang" style="text-align: center">' +
                            '<img  style="margin-left: 2px;margin-top: 5px;" src="' + $(this).attr('src') + '" >' +
                            '</div>' +
                            '<hr style="margin-top: 10px;margin-bottom: 10px;"/>' +
                            '<div style="text-align: center;margin-bottom: 10px">' +
                            '<div style="display: inline;margin-right: 35px;"><a style="text-align: center" onclick="collect(this)">加入收藏</a></div>' +
                            '<div style="display: inline;margin-left:13px;height:100px; width:1px; border-left:1px #9f9f9f solid"></div>' +
                            '<div style="display: inline;margin-left: 50px;"><a style="text-align: center" onclick="openImg(this)">新窗口打开</a></div>' +
                            '</div>' +
                            '</div>';
                    return html;
                }

            },
            position: {
                viewport: $(window)
            }, show: {
                solo: true,
                delay: 500
            }, style: {
                classes: 'qtip-bootstrap'

            }, hide: {
                delay: 500, fixed: true
            }

        })
    });
    $(function(){
        $('[data-role="id_weibo"]').mouseover(function(){
            var id = $(this).attr('id');
            if(id == 'weibo_'+{$weibo['id']}) {
                $(this).find(".follow-btn").css("display", "inline-block")
            }

        })
        $('[data-role="id_weibo"]').mouseout(function(){
            $(".follow-btn").css("display", "none")
        })
    });
    // alert($('.weibo-comment-container').text());
</script>
